import efinance as ef
import webbrowser
from tkinter import messagebox


df = ef.stock.get_realtime_quotes()
random = df.sample(1)
value = random.at[random.index[0], random.columns[0]]


# 随机生成一只股票学习
url = "http://www.iwencai.com/unifiedwap/result?w={}".format(value)
webbrowser.open(url)

# 猪肉
url = "https://zhujia.zhuwang.cc/"
webbrowser.open(url)

# 原油
url = "http://quote.eastmoney.com/globalfuture/CL00Y.html"
webbrowser.open(url)

# 黄金
url = "http://quote.eastmoney.com/globalfuture/GC00Y.html"
webbrowser.open(url)

# 板块资金
url = "https://data.eastmoney.com/bkzj/hy.html"
webbrowser.open(url)

# 比特币
url = 'https://www.google.com/finance/quote/BTC-USDT'
webbrowser.open(url)

messagebox.showinfo('提示', '结束')
